const { resolve } = require('path')
const { build } = require('esbuild')
const args = require('minimist')(process.argv.slice(2))
const pkg = require(resolve(__dirname, `../package.json`))

const format = args.f || 'global'

build({
    entryPoints: [resolve(__dirname, '../src/index.js')],
    outfile: resolve(__dirname, `../dist/${pkg.name}.dev.js`),

})
